package com.guo.pet_store.admin.service;

import com.guo.pet_store.admin.dao.ShopCarRepository;
import com.guo.pet_store.admin.pojo.Pet;
import com.guo.pet_store.admin.pojo.PetQuery;
import com.guo.pet_store.admin.pojo.ShopCar;
import com.guo.pet_store.admin.pojo.User;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

import java.awt.print.Pageable;
import java.util.List;

public interface ShopService {
    Boolean addPet(Pet pet,ShopCar shopCar);
    List<Pet> findAllItems(Long CarId);
    void deleteAItemFromCar(Long petId,Long carId);
    void connectToUser(Long userId);
    List<Integer> findPetitems(Long carId);

    ShopCar findShopCarByUser(User user);

    void clearCar(User user);
}
